﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SignalBox.Core.Model.Timetable;

namespace SignalBoxEditor.UI
{
    public partial class ucStopAtPanel : UserControl
    {
        public ucStopAtPanel(StopAtLocationAction action)
        {
            InitializeComponent();


            List<string> locations = action.Schedule.Timetable.TrackLayout.getLocations();
            foreach (string loc in locations)
            {
                locationComboBox.Items.Add(loc);
            }

            stopAtLocationActionBindingSource.DataSource = action;
        }
    }
}
